import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import * as echarts from 'echarts'

//引入全局样式
import '@/assets/css/gloable.css'
//引入字体图标
import '@/assets/font/iconfont.css'
//引入主题
import "../public/static/theme/chalk";
import '../public/static/theme/vintage'
//引入socket_service服务
import SocketService from '@/utils/socket_service'

//基准路径的配置
axios.defaults.baseURL = 'http://localhost:3000/'
Vue.prototype.$http = axios
//echarts的全局挂载
Vue.prototype.$echarts = echarts
// 对服务端进行 webSocket的连接
SocketService.Instance.connect()
//socket_service的挂载
Vue.prototype.$socket = SocketService.Instance

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
